home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magic Disk 64
/
Magic_Disk_64_91-09_1991_-_de_Side_B.d64
/
-text worker -
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
3KB
|
138 lines
10 rem steuerprog
20 :
30 print"[147]"
40 sys 57812 "setup",8:poke 780,0
50 poke 781,0:poke 782,192:sys 65493
60 sys 57812 "datapart",8:poke 780,0
70 poke 781,0:poke 782,32:sys 65493
80 sys 57812 "main routs",8:poke 780,0
90 poke 781,68:poke 782,197:sys 65493
100 poke 10287,92:poke 808,225
110 poke 53280,0:poke53281,0
120 goto 460
130 :
140 rem put on screen
150 :
160 poke 53272,24:poke 198,0
170 print"[152][147] [203]onzipiert fuer ";
180 print"kleinere [193]rbeiten,"
190 print" die gut aussehen sollen :"
200 poke 55334,0:poke 56096,0
210 print" [212][216]-[215][207][210][203][197][210]"
220 print spc(8) "(1) [212]ext loeschen"
230 print spc(8) "(2) [212]ext speichern"
240 print spc(8) "(3) [212]ext laden"
250 print spc(8) "(4) [212]ext drucken"
260 print spc(8) "(5) [212]ext bearbeiten"
270 print spc(8) "(6) [196]isk [201]nhalt"
280 print spc(8) "==================="
290 print" [193]uswahl 1 - 6"
300 get a$:if a$="" then 300
310 if a$="1" then goto 410
320 if a$="2" then goto 570
330 if a$="3" then goto 680
340 if a$="4" then goto 800
350 if a$="5" then goto 990
360 if a$="6" then goto 500
370 f$="[198]alsche [212]aste ":gosub 1080
380 poke 51,0:poke 52,160
390 goto 300
400 :
410 rem clear the text
420 print" -=*>";:sys10240
430 print"[158][215]irklich loeschen?"
440 get a$:if a$="" then 440
450 if a$<>"j" then 480
460 sys 10278
470 poke 12288,9:poke 12289,48
480 goto 140
490 :
500 rem directory
510 print"[147][155] [196]irectory"
520 sys 11008 "$:*",8
530 print" [212]aste !":poke198,0
540 getb$:if b$="" then 540
550 goto 140
560 :
570 rem save the text
580 print" -=*>";:sys10240
590 gosub 1140 :rem filename
600 poke 193,0 :rem bei $3000
610 poke 194,48
620 poke 174,peek(12288)+10
630 poke 175,peek(12289)
640 sys 62954
650 gosub 1330
660 goto 140
670 :
680 rem load the text
690 print" -=*>";:sys10240
700 print" [215]irklich laden ?"
710 get a$:if a$="" then 710
720 if a$<>"j" then 780
730 gosub 1140 :rem filename
740 poke 780,0
750 poke 781,0:poke782,48
760 sys 65493
770 gosub 1330
780 goto 140
790 :
800 rem
810 print" -=*>";:sys10240
820 open4,4,1:a=1
830 print"[144][147] [158][196]rucker einschalten"
840 print" und [207][206][204][201][206][197] setzen"
850 print"[159] [215]ieviele [193]bzuege ? (+/-)"
860 printa
870 geta$:if a$=""then870
880 if a$="+" then a=a+1
890 if a$="-" then a=a-1
900 if a$=chr$(13) then 940
910 if a<1 then a=1
920 print"[145]"a"[157] ":goto 870
930 :
940 if a<=1 then sys 52416:goto 970
950 sys 52416:print#4,chr$(12)
960 a=a-1:print"[145][145]nr"a:if a>0 then 950
970 close4:goto140
980 :
990 rem
1000 print"[147]"
1010 print" [198]1: (hex)nr [197]ingabe [198]3: [201]dentifizieren"
1020 print" [198]5: [211]pezialzeichen [198]7: [200]ilfsmenue"
1030 print" shift+ctrl+commo => [205]enue "
1040 print" ctrl = font commo = form";
1050 sys 50500
1060 goto 140
1070 :
1080 rem
1090 print"";f$
1100 forx=0to 900:nextx
1110 print"[145] "
1120 return
1130 :
1140 rem
1150 b$="":print""
1160 print" [212]extname "
1170 print spc(10)"----------------[145][145]"
1180 print spc(9)":";
1190 sys10240:forx=0to15
1200 forx=0to15
1210 get c$:if c$="" then 1210
1220 if c$=chr$(13) then 1300
1230 if c$=chr$(34) then 1210
1240 if c$=chr$(44) then 1210
1250 if c$=chr$(64) then 1150
1260 if asc(c$)<32 then 1210
1270 if asc(c$)>95 then 1210
1280 printc$;:b$=b$+c$
1290 next x
1300 if b$="" then 1320
1310 sys 57812 b$,8 :rem trans fname
1320 return
1330 :
1340 open 15,8,15:input#15,x,c$
1350 close15:f$=str$(x)+" "+c$
1360 goto 1080
1370 :